import request from '@/utils/request'

// 查询行业分类列表
export function businessList(query) {
    return request({
        url: '/system/business/list',
        method: 'post',
        // params: query
        data: query
    })
}


// 新增行业分类
export function businessAdd(data) {
    return request({
        url: '/system/business/add',
        method: 'post',
        data: data
    })
}

// 修改行业分类
export function businessEdit(data) {
    return request({
        url: '/system/business/edit',
        method: 'post',
        data: data
    })
}

// 删除行业分类
export function areaDel(businessId) {
    return request({
        url: `/system/business/del/${businessId}`,
        method: 'get'
    })
}

// 版本列表
export function businessVersions() {
    return request({
        url: `/system/business/versions`,
        method: 'get'
    })
}